package com.aos.erp.message.model;

import com.aos.erp.message.enums.DelStatus;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("消息模板")
@TableName("t_message_template")
public class MessageTemplateInfo implements Serializable {

    @ApiModelProperty(value="模板ID",hidden=true)
    @TableId(value = "id", type = IdType.INPUT)
    private long id = 0;
    @ApiModelProperty(value="模板编号",hidden=true)
    @TableField("mt_code")
    private String mtCode = ""; // 编号
    @ApiModelProperty(value="模板标题",hidden=true)
    @TableField("mt_title")
    private String mtTitle = "";    // 标题
    @ApiModelProperty("是否删除：del_no为未删除；del_yes为已删除")
    @TableField("is_del")
    private DelStatus isDel = DelStatus.del_no;
    @ApiModelProperty(value="创建人",hidden=true)
    @TableField("create_user")
    private String createUser = ""; // 创建人
    @ApiModelProperty(value="创建时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;    //创建时间
    @ApiModelProperty(value="修改人",hidden=true)
    @TableField("update_user")
    private String updateUser = ""; // 修改人
    @ApiModelProperty(value="修改时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;    //修改时间

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getMtCode() {
        return mtCode;
    }

    public void setMtCode(String mtCode) {
        this.mtCode = mtCode;
    }

    public String getMtTitle() {
        return mtTitle;
    }

    public void setMtTitle(String mtTitle) {
        this.mtTitle = mtTitle;
    }

    public DelStatus getIsDel() {
        return isDel;
    }

    public void setIsDel(DelStatus isDel) {
        this.isDel = isDel;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
